/*
 * @Author: yaoge233 1351192080@qq.com
 * @Date: 2025-01-05 17:24:35
 * @LastEditors: yaoge233 1351192080@qq.com
 * @LastEditTime: 2025-01-05 17:24:46
 * @FilePath: \react-demo\src\utils\token.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const TOKENKEY = 'token_key'

function setToken (token) {
  return localStorage.setItem(TOKENKEY, token)
}

function getToken () {
  return localStorage.getItem(TOKENKEY)
}

function clearToken () {
  return localStorage.removeItem(TOKENKEY)
}

export {
  setToken,
  getToken,
  clearToken
}